package com.t.bricks.bussiness.db.entity.userphoneinfo.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import com.t.bricks.annotation.DataInfo;

/**
 * 用户手机信息'UserPhoneInfo'表实体类
 * 警告:非数据库字段禁止在此添加,应该创建扩展实体中添加
 * @author HuangXinBian
 * @DateTime 2022年08月09日 09:10:59
 */
@ApiModel("用户手机信息UserPhoneInfo")
@DataInfo(sDbName="BricksCommonBusiness", sTableName="UserPhoneInfo")
public class UserPhoneInfoBase implements Serializable {

	private static final long serialVersionUID = 1L;// 使用rmi时需修改

	/**
	 * 用户编号
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="UserPhoneInfo",
		sName="sUserId", sComment="用户编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=true, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=0 )
	@ApiModelProperty(value="用户编号", example="")
	//[end]
	protected String sUserId;

	/**
	 * 客户端编号
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="UserPhoneInfo",
		sName="sCid", sComment="客户端编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=1 )
	@ApiModelProperty(value="客户端编号", example="")
	//[end]
	protected String sCid;

	/**
	 * 手机品牌
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="UserPhoneInfo",
		sName="sPhoneBrand", sComment="手机品牌", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=2 )
	@ApiModelProperty(value="手机品牌", example="")
	//[end]
	protected String sPhoneBrand;

	/**
	 * 手机型号
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="UserPhoneInfo",
		sName="sPhoneModel", sComment="手机型号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=3 )
	@ApiModelProperty(value="手机型号", example="")
	//[end]
	protected String sPhoneModel;

	/**
	 * 取 用户编号
	 * @return String
	 */
	public String getsUserId() {
		return sUserId;
	}

	/**
	 * 设置用户编号
	 * @param sUserId
	 */
	public void setsUserId(String sUserId) {
		this.sUserId = sUserId;
	}

	/**
	 * 取 客户端编号
	 * @return String
	 */
	public String getsCid() {
		return sCid;
	}

	/**
	 * 设置客户端编号
	 * @param sCid
	 */
	public void setsCid(String sCid) {
		this.sCid = sCid;
	}

	/**
	 * 取 手机品牌
	 * @return String
	 */
	public String getsPhoneBrand() {
		return sPhoneBrand;
	}

	/**
	 * 设置手机品牌
	 * @param sPhoneBrand
	 */
	public void setsPhoneBrand(String sPhoneBrand) {
		this.sPhoneBrand = sPhoneBrand;
	}

	/**
	 * 取 手机型号
	 * @return String
	 */
	public String getsPhoneModel() {
		return sPhoneModel;
	}

	/**
	 * 设置手机型号
	 * @param sPhoneModel
	 */
	public void setsPhoneModel(String sPhoneModel) {
		this.sPhoneModel = sPhoneModel;
	}

	/**
	 * 复制对象
	 * @param source 数据源
	 * @return UserPhoneInfoBase
	 */
	public static UserPhoneInfoBase copy(UserPhoneInfoBase source) {
		if (null == source) {
			return null;
		}
		
		UserPhoneInfoBase target = new UserPhoneInfoBase();
		target.setsUserId(source.getsUserId());
		target.setsCid(source.getsCid());
		target.setsPhoneBrand(source.getsPhoneBrand());
		target.setsPhoneModel(source.getsPhoneModel());

		return target;
	}
	
	/**
	 * 克隆对象
	 * @return UserPhoneInfoBase
	 */
	public UserPhoneInfoBase clone() {
		return copy(this);
	}
	
}
